package net.mihome.app.ui;

import net.mihome.app.R;
import net.mihome.app.ui.view.MifuwuBanzhengView;
import net.mihome.app.ui.view.MyViewLinster;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ProgressBar;

import com.github.nkzawa.emitter.Emitter;
import com.github.nkzawa.socketio.client.IO;
import com.github.nkzawa.socketio.client.Socket;

public class MifuwuShopMenusActivity extends BaseActivity {
	private MifuwuBanzhengView mifuwuBanzhengView;
	private ProgressBar progressImageView;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mifuwu_banzheng_main);
		progressImageView=(ProgressBar) findViewById(R.id.mifuwu_banzheng_center_refresh);
		mifuwuBanzhengView=(MifuwuBanzhengView) findViewById(R.id.mifuwu_banzheng_view);
		mifuwuBanzhengView.setMyViewLinster(new MyViewLinster() {
			
			@Override
			public void onLoadComplete() {
				progressImageView.setVisibility(View.GONE);
			}
			
			@Override
			public void onBeforeLoad() {
				progressImageView.setVisibility(View.VISIBLE);
				
			}
		});

		
		mifuwuBanzhengView.initData();
	}
}
